package com.gmzg.gmzgnews;

import android.app.Application;

import com.gmzg.gmzgnews.me.model.User;

import org.xutils.DbManager;
import org.xutils.x;

import cn.sharesdk.framework.ShareSDK;
import cn.smssdk.SMSSDK;

/**
 * author: GD on 2016/11/1 12:44
 * email :2301722691@qq.com
 */

public class MainApplication extends Application {

    private DbManager db;
    @Override
    public void onCreate() {
        super.onCreate();
        ShareSDK.initSDK(this);
        x.Ext.init(this);
        DbManager.DaoConfig config = new DbManager.DaoConfig();
        config.setDbName("app.db").setDbVersion(1);
        db = x.getDb(config);
    }

    public DbManager getDb() {
        return db;
    }

}
